/*
 * Copyright 2012-2013 EZC Group S.A. RCS Luxembourg B140949
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.yobidrive.y3.v1.model;


/**
 * Details about a linked item
 * 
 * @author david
 *
 */
public class GetItemLinkDetailsResult {
	
	//Metadata
	public String linkVersion			= ""; //To handle future link format evolutions
	public String createdTS 			= ""; //Creation date of this link
	
	//Definition
	public String id 					= ""; //Unique identifier of the link
	public String userId				= ""; //User id recipient of the link 
	public String drive					= ""; //Target drive
	public String driveType				= ""; //Empty or strongroom
	public String uid					= ""; //Target cid
	public String version	 			= ""; //Target version (if applicable)
	public String itemType				= ""; //File or folder
	
	//Validity
	public String validUntil 			= ""; //Date after which the link is discarded
	
	//Detailed content
	public String itemName				= ""; //Name of the item referenced in the link (to handle cases where item was deleted)
	public int	 itemSize				= -1;
	public String parentUid				= ""; //Uid of the parent folder is it's a file 
	public String sender				= ""; //sender of the link
	
	//Access right
	public String linkStatus			= ""; // "no_more_access", "deleted", "outdated", "valid"
	public String userStatus			= ""; // "registered", "not_registered"
	public String userProvider			= ""; // "google", "yahoo", or empty for std account
	public String userRights			= ""; //User rights on this item/drive (used if not registered to tell him what he could do)
	
	//Branding info for custom page 
	public String bigLogoUrl			= null; //Direct dl url of the big logo
	public KeyValue[] cssValues			= null; //All CSS values
	
}
